﻿<controls:ChildWindow x:Class="Blokus.HelpDialog"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="628" Height="413" 
           Title="Blokus Help">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <RichTextBox Name="richTextBox1" VerticalScrollBarVisibility="Visible">
            <Paragraph FontSize="15">
                <Bold>The game of Blokus</Bold>
            </Paragraph>
            <Paragraph>The game is composed of
                <LineBreak /> * A game board with 196 squares
                <LineBreak /> * 42 pieces (21 pieces in each color each with a different shape)
                <LineBreak />
            </Paragraph>
            <Paragraph FontSize="15">
                <Bold>Controls</Bold>
            </Paragraph>
            <Paragraph>
                Pieces can be moved by left clicking on the piece, dragging the piece to the desired location, and releasing the left mouse button.
                <LineBreak/>
                In order to rotate a piece, use the up and down arrow keys. In order to flip a piece, use the left and right arrow keys.
                <LineBreak/>
            </Paragraph>
            <Paragraph FontSize="15">
                <Bold>Purpose of the game</Bold>
            </Paragraph>
            <Paragraph>
                The purpose of the game is for each player to place his/her 21 pieces on the board (or at least the maximum number of pieces).
                <LineBreak />
            </Paragraph>
            <Paragraph FontSize="15">
                <Bold>Restrictions</Bold>
            </Paragraph>
            <Paragraph>
                * A player must begin at one of the spaces on the board marked with a circle of the player's corresponding color.
                <LineBreak/>
                * The order of play is orange than violet.
                <LineBreak/>
                * Each new piece that is placed on the board must touch another piece of the same color, but it can only touch at the corners, never along the sides.
                <LineBreak/>
            </Paragraph>
            <Paragraph FontSize="15">
                <Bold>End of the game</Bold>
            </Paragraph>
            <Paragraph>
                When one of the two players is blocked and can no longer place any pieces on the board, the end of the game has been reached.
                <LineBreak/>
            </Paragraph>
            <Paragraph FontSize="15">
                <Bold>Calculating the Score</Bold>
            </Paragraph>
            <Paragraph>
                When the two players are blocked, each person counts the number of squares that he/she was unable to place on the board and calculates his/her score :
                <LineBreak />
                * Each square which is not placed on the boards counts as a negative point.
                <LineBreak />
                * A bonus of 15 points is awarded if all 21 pieces have been placed on the board.
                <LineBreak />
                * This bonus is increased to 20 points if the 21 pieces were placed on the board with the single square being placed last.
                <LineBreak />
                The person who has the most points wins !
                <LineBreak />
            </Paragraph>

        </RichTextBox>
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,12,0" Grid.Row="1" />
    </Grid>
</controls:ChildWindow>